package cn.befory.dao;

import cn.befory.pojo.CustomerRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author befory
 * @version 1.0
 * @since 2019/10/8
 * Created by DQ on 2019/10/8.
 */
public interface CustomerRecordMapper{
    int insert(CustomerRecord customerRecord) throws Exception;

    int update(CustomerRecord customerRecord) throws Exception;

    int deleteById(Long id) throws Exception;

    List<CustomerRecord> selectByPage(@Param("customerRecord") CustomerRecord customerRecord, @Param("pageNo") int pageNo, @Param("pageSize") int pageSize) throws Exception;

    int selectCount(CustomerRecord customerRecord) throws Exception;
}
